package com.bdzl.credit.service;

import com.bdzl.pub.entity.loan.CreditDO;
import com.bdzl.pub.vo.loan.CreditVO;

import java.util.List;
import java.util.Map;

/**
 * 客户个人征信查询缓存信息表
 *
 * @author yangyicai
 * @email yangyicai@foxmail.com
 * @date 2021-05-11 15:23:42
 */
public interface CreditService {

	CreditDO get(Integer creditId);

	List<CreditDO> list(Map<String, Object> map);

	/**
	 * @Author Zhn
	 * @Description //TODO 获取征信查询列表  以及客户基础信息
	 * @Date 15:04 2021/5/26
	 * @Param [map]
	 * @return java.util.List<com.bdzl.pub.vo.loan.CreditVO>
	 **/        
	List<CreditVO> CreditVOlist(Map<String, Object> map);

	int count(Map<String, Object> map);

	int save(CreditDO credit);

	int update(CreditDO credit);

	int remove(Integer creditId);

	int batchRemove(Integer[] creditIds);

	/**
	* @Description: TODO 根据身份证号查询征信数据
	* @param cardId 身份证号
	* @return: com.bdzl.pub.entity.loan.CreditDO
	* @Author: Ming
	* @Date: 2021/5/18 10:31
	*/
	CreditVO getCreditByCardId(String cardId);
}
